[9.0] [Security Solution][Alert details] save selected prevalence time to local storage (#243543)#243868
Closed
PhilippeOberti wants to merge 1 commit into
Closed
[9.0] [Security Solution][Alert details] save selected prevalence time to local storage (#243543)#243868PhilippeOberti wants to merge 1 commit into
PhilippeOberti wants to merge 1 commit into
Conversation
…ocal storage (elastic#243543) ## Summary This PR makes a small improvement to the alert details flyout, by saving the time selected by the user in the expanded section prevalence details to local storage. - If no value is present in local storage, we default to the value we had before, which is `Last 30 days`. - When the user selects a new interval in the flyout expanded section Insights => Prevalence tab, we persist that value in local storage under the `securitySolution.documentDetailsFlyout.prevalenceInterval` key. We save the `start` and `end` values. - We apply those saved `start` and `end` values both to the prevalence details (expanded flyout tab) and prevalence overview (collapsed flyout) components. https://github.com/user-attachments/assets/c8e3ed00-e696-45e4-b45c-f90deb285ece We add a tooltip to let the user know that the prevalence overview (in the right panel) fetches prevalence data for the interval set within the expanded section | Default time range | If time range has been saved in local storage | | ------------- | ------------- | | <img width="573" height="805" alt="Screenshot 2025-11-20 at 10 10 37 PM" src="https://github.com/user-attachments/assets/80dc5f74-31d7-4e93-a06d-8fb0a3d546b6" /> | <img width="571" height="805" alt="Screenshot 2025-11-20 at 10 11 16 PM" src="https://github.com/user-attachments/assets/8cbf34b4-93ad-4a9e-9ed4-45c78310cbdd" /> | ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. (cherry picked from commit d417fc9) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/prevalence_overview.test.tsx # x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/constants/local_storage.ts
Contributor
|
CI was triggered for this PR, but this PR targets 9.0 which should not receive a future release. CI is not supported for these branches. Please consult the release schedule, or contact The following branches are currently considered to be open:
|
1 similar comment
Contributor
|
CI was triggered for this PR, but this PR targets 9.0 which should not receive a future release. CI is not supported for these branches. Please consult the release schedule, or contact The following branches are currently considered to be open:
|
4 tasks
kqualters-elastic
approved these changes
Nov 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.0:Questions ?
Please refer to the Backport tool documentation